// script for shield recharge
// recharge shield if it is below max

if(global.player1Stats[5] == 2)  // make sure the model shield 2
{
    if(self.shield < self.maxShield) // check if shield is down
        {
            self.shield += 0.5;
            self.alarm[0] = 15; // loop back into shield
        }
    if(self.shield <= 0)    // when shield is depleted
        {
            self.alarm[0] = 60;
        }
    if(self.shield == self.maxShield)
        {
            self.alarm[0] = 30;
        }
}
